
public class Progression {
  protected long first;
  
  protected long cur;
  
  // Default constructor
  Progression () {
    cur = first = 0; 
  }
  
  protected long firstValue() {
	  cur = first;
	  return cur;
  }
  
  protected long nextValue() {
	  return ++cur;
  }
  
  public void printProgression(int n) {
	  System.out.print(firstValue());
	  for (int i = 2; i <= n; i++) {
		  System.out.print(" " + nextValue());
	  }
	  System.out.println();
  }
}
